package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_pms_y_g database table.
 * 
 */
@Entity
@Table(name="per_pms_y_g")
@NamedQuery(name="PerPmsYG.findAll", query="SELECT p FROM PerPmsYG p")
public class PerPmsYG implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int ygid;

	private String ygwht;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	//bi-directional many-to-one association to PerPmsFun
	@ManyToOne
	@JoinColumn(name="FUNID")
	private PerPmsFun perPmsFun;

	public PerPmsYG() {
	}

	public int getYgid() {
		return this.ygid;
	}

	public void setYgid(int ygid) {
		this.ygid = ygid;
	}

	public String getYgwht() {
		return this.ygwht;
	}

	public void setYgwht(String ygwht) {
		this.ygwht = ygwht;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

	public PerPmsFun getPerPmsFun() {
		return this.perPmsFun;
	}

	public void setPerPmsFun(PerPmsFun perPmsFun) {
		this.perPmsFun = perPmsFun;
	}

}